/**
 * admui-basic v2.1.0 (http://www.admui.com/)
 * Copyright 2015-2019 Admui Team
 * Licensed under the Admui License 1.1 (http://www.admui.com/about/license)
 */
(function(window, document, $) {
    "use strict";

    $.components.register("slidePanel", {
        mode: "manual",
        defaults: {
            closeSelector: ".slidePanel-close",
            mouseDragHandler: ".slidePanel-handler",
            loading: {
                template: function(options) {
                    return (
                        '<div class="' +
                        options.classes.loading +
                        '">' +
                        '<div class="loader loader-default"></div>' +
                        "</div>"
                    );
                },
                showCallback: function(options) {
                    this.$el.addClass(options.classes.loading + "-show");
                },
                hideCallback: function(options) {
                    this.$el.removeClass(options.classes.loading + "-show");
                }
            }
        }
    });
})(window, document, jQuery);
